//
//  DDRTHeader.h
//  DDRichTextDemo
//
//  Created by 张小伟 on 2021/9/18.
//

#ifndef DDRTHeader_h
#define DDRTHeader_h

#define kScreenHeight [UIScreen mainScreen].bounds.size.height
#define kScreenWidth [UIScreen mainScreen].bounds.size.width

// 状态栏高度
#define kStatusBarHeight (kScreenHeight >= 812)?40:20
// 状态栏和Nav合计高度
#define kNavBarHeight (kStatusBarHeight) + 44

// 主题颜色
#define kThemeOrangeColor  RGBCOLOR(233, 84, 43)

#define RGBCOLOR(r,g,b) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]


///弱引用，强应用，主要用于block里面，现在block弱引用self，再在block里面强引用
#define WS(__KEY)  __weak typeof(self)__KEY = self
#define SW(__SW,__WS)  __strong typeof(__WS)__SW = __WS

// 自定义Log
#ifdef DEBUG

#define DDLog(...) NSLog(@"%s %d \n %@\n\n",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])

#else
#define DDLog(...)

#endif

#define kBtnBaseTag        10
// 字符串拼接的标志
#define kAppendStrSign   @" , "

#import "Masonry.h"

#endif /* DDRTHeader_h */
